package com.longshihan.carservice.dao;

import com.longshihan.carservice.model.ArticleDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AritcleDao {

    int addArticle(ArticleDomain articleDomain);

    int delArticle(@Param("authorId") String authorId,@Param("articleId") String articleId);


    int updateArticle(ArticleDomain articleDomain);

    List<ArticleDomain> getArticles();

    ArticleDomain getArticleById(@Param("authorId") String authorId,@Param("articleId") String articleId);

}
